#ifndef TOOLMANAGER_H_
#define TOOLMANAGER_H_

#include "Mouse.h"
#include "ObjectList.h"
#include "TextureManager.h"

class ToolManager
{
	bool leftClickDepressed;
	bool leftClickWasDepressed;
	bool rightClickDepressed;
	bool rightClickWasDepressed;
	bool saveKeyDepressed;
	bool saveKeyWasDepressed;
	
	char * saveFile;
	char * textureFile;
	TextureManager * textureManager;
	ObjectList * objectList;
	Vertex * dragVertex;
	Mouse mouse;
	int textureIndex;
	double lastThoughtTimestamp;
	
	public:
	bool exit;
	
	ToolManager(char * filename, char * saveFile);
	~ToolManager();
	
	void PrepareFrame();
	void Draw();
	void SetNormalUserInput(unsigned char key,int modifier, bool isDepressed);
	void SetUserInput(int key, int modifier, bool isDepressed);
	void SetUserInput(int key, bool isDepressed, float x, float y);
	void SetPassiveMouse(float x, float y);
	void SetActiveMouse(float x, float y);
	void HandleUserInput();
	void SaveData();
	void LeftClick();
	void LeftDrag();
};
#endif /*TOOLMANAGER_H_*/
